import request from '@/utils/request'

// 查询入职申请列表
export function listOaEntry(query) {
  return request({
    url: '/module/oaEntry/list',
    method: 'get',
    params: query
  })
}

// 查询入职申请详细
export function getOaEntry(id) {
  return request({
    url: '/module/oaEntry/' + id,
    method: 'get'
  })
}

// 新增入职申请
export function addOaEntry(data) {
  return request({
    url: '/module/oaEntry',
    method: 'post',
    data: data
  })
}

// 修改入职申请
export function updateOaEntry(data) {
  return request({
    url: '/module/oaEntry',
    method: 'put',
    data: data
  })
}

// 删除入职申请
export function delOaEntry(id) {
  return request({
    url: '/module/oaEntry/' + id,
    method: 'delete'
  })
}
